function SrvLog(params){ 
	 
}

SrvLog.Where = function(type,proxy){
	this.type = type;
	this.proxy=proxy;
	this.linked = null;
	this.set = null;
	if(this.type==0){
		this.set = new SrvLog.Where(1,true);
		this.set.linked = this;
	}
	this.getProxy = function(){
		var m = new SrvLog.Where(this.type);//当前的对像
		if(this.type==0){
			m.set = new SrvLog.Where(1,true);//set对象
			m.set.linked = m;
		}else{
			m.linked=this.linked;
			this.linked.linked=m;
		}
		return m;
	}
	this.data = {};
	this.put = function(key,value){
		this.data[key] = value;
	}
	this.get = function(key){
		return this.data[key];
	}
	
	
	/** 编号 [非空]       **/
	this.slId=function(slId){if(this.proxy)return this.getProxy().slId(slId);  this.put("slId", slId);return this;};
	/** and sl_id is null */
	this.slIdNull=function(){if(this.proxy)return this.getProxy().slIdNull();if(this.get("slIdNot")==null)this.put("slIdNot", "");this.put("slId", null);return this;};
	/** not .... */
	this.slIdNot=function(){if(this.proxy)return this.getProxy().slIdNot();this.put("slIdNot", "not");return this;};
	this.slIdNotNull=function(){if(this.proxy)return this.getProxy().slIdNotNull();this.put("slIdNot", "not");this.put("slId", null);return this;};
	this.slIdNot=function(slId){if(this.proxy)return this.getProxy().slIdNot(slId);this.put("slIdNot", "not");this.put("slId", slId);return this;};
		
	/** and sl_id <= ? */
	this.slIdMin=function(min){if(this.proxy)return this.getProxy().slIdMin(min);this.put("slIdMin", min);return this;};
	/** and sl_id >= ? */
	this.slIdMax=function(max){if(this.proxy)return this.getProxy().slIdMax(max);this.put("slIdMax", max);return this;};
		
		
	this.slIdIn=function(ids){
		if(this.proxy)return this.getProxy().slIdIn(ids);  this.put("slIdIn", ids);return this;
	};	
		 
	
	
	/** 域  [SrvHost]      **/
	this.slHost=function(slHost){if(this.proxy)return this.getProxy().slHost(slHost);  this.put("slHost", slHost);return this;};
	/** and sl_host is null */
	this.slHostNull=function(){if(this.proxy)return this.getProxy().slHostNull();if(this.get("slHostNot")==null)this.put("slHostNot", "");this.put("slHost", null);return this;};
	/** not .... */
	this.slHostNot=function(){if(this.proxy)return this.getProxy().slHostNot();this.put("slHostNot", "not");return this;};
	this.slHostNotNull=function(){if(this.proxy)return this.getProxy().slHostNotNull();this.put("slHostNot", "not");this.put("slHost", null);return this;};
	this.slHostNot=function(slHost){if(this.proxy)return this.getProxy().slHostNot(slHost);this.put("slHostNot", "not");this.put("slHost", slHost);return this;};
		
		
	this.slHostIn=function(ids){
		if(this.proxy)return this.getProxy().slHostIn(ids);  this.put("slHostIn", ids);return this;
	};	
		 
	
	
	/** 操作名称 [非空]       **/
	this.slName=function(slName){if(this.proxy)return this.getProxy().slName(slName);  this.put("slName", slName);return this;};
	/** and sl_name is null */
	this.slNameNull=function(){if(this.proxy)return this.getProxy().slNameNull();if(this.get("slNameNot")==null)this.put("slNameNot", "");this.put("slName", null);return this;};
	/** not .... */
	this.slNameNot=function(){if(this.proxy)return this.getProxy().slNameNot();this.put("slNameNot", "not");return this;};
	this.slNameNotNull=function(){if(this.proxy)return this.getProxy().slNameNotNull();this.put("slNameNot", "not");this.put("slName", null);return this;};
	this.slNameNot=function(slName){if(this.proxy)return this.getProxy().slNameNot(slName);this.put("slNameNot", "not");this.put("slName", slName);return this;};
		
		 
	
	
	/** 操作模块  [SrvProperty]     model_class:系统数据模型类 **/
	this.slModel=function(slModel){if(this.proxy)return this.getProxy().slModel(slModel);  this.put("slModel", slModel);return this;};
	/** and sl_model is null */
	this.slModelNull=function(){if(this.proxy)return this.getProxy().slModelNull();if(this.get("slModelNot")==null)this.put("slModelNot", "");this.put("slModel", null);return this;};
	/** not .... */
	this.slModelNot=function(){if(this.proxy)return this.getProxy().slModelNot();this.put("slModelNot", "not");return this;};
	this.slModelNotNull=function(){if(this.proxy)return this.getProxy().slModelNotNull();this.put("slModelNot", "not");this.put("slModel", null);return this;};
	this.slModelNot=function(slModel){if(this.proxy)return this.getProxy().slModelNot(slModel);this.put("slModelNot", "not");this.put("slModel", slModel);return this;};
		
		
	this.slModelIn=function(ids){
		if(this.proxy)return this.getProxy().slModelIn(ids);  this.put("slModelIn", ids);return this;
	};	
		 
	
	
	/** 操作类型  [SrvProperty]     log_type:日志操作类型 **/
	this.slType=function(slType){if(this.proxy)return this.getProxy().slType(slType);  this.put("slType", slType);return this;};
	/** and sl_type is null */
	this.slTypeNull=function(){if(this.proxy)return this.getProxy().slTypeNull();if(this.get("slTypeNot")==null)this.put("slTypeNot", "");this.put("slType", null);return this;};
	/** not .... */
	this.slTypeNot=function(){if(this.proxy)return this.getProxy().slTypeNot();this.put("slTypeNot", "not");return this;};
	this.slTypeNotNull=function(){if(this.proxy)return this.getProxy().slTypeNotNull();this.put("slTypeNot", "not");this.put("slType", null);return this;};
	this.slTypeNot=function(slType){if(this.proxy)return this.getProxy().slTypeNot(slType);this.put("slTypeNot", "not");this.put("slType", slType);return this;};
		
		
	this.slTypeIn=function(ids){
		if(this.proxy)return this.getProxy().slTypeIn(ids);  this.put("slTypeIn", ids);return this;
	};	
		 
	
	
	/** 操作人 [非空] [SrvUser]      **/
	this.slUser=function(slUser){if(this.proxy)return this.getProxy().slUser(slUser);  this.put("slUser", slUser);return this;};
	/** and sl_user is null */
	this.slUserNull=function(){if(this.proxy)return this.getProxy().slUserNull();if(this.get("slUserNot")==null)this.put("slUserNot", "");this.put("slUser", null);return this;};
	/** not .... */
	this.slUserNot=function(){if(this.proxy)return this.getProxy().slUserNot();this.put("slUserNot", "not");return this;};
	this.slUserNotNull=function(){if(this.proxy)return this.getProxy().slUserNotNull();this.put("slUserNot", "not");this.put("slUser", null);return this;};
	this.slUserNot=function(slUser){if(this.proxy)return this.getProxy().slUserNot(slUser);this.put("slUserNot", "not");this.put("slUser", slUser);return this;};
		
		
	this.slUserIn=function(ids){
		if(this.proxy)return this.getProxy().slUserIn(ids);  this.put("slUserIn", ids);return this;
	};	
		 
	
	
	/** 模块类名        **/
	this.slClass=function(slClass){if(this.proxy)return this.getProxy().slClass(slClass);  this.put("slClass", slClass);return this;};
	/** and sl_class is null */
	this.slClassNull=function(){if(this.proxy)return this.getProxy().slClassNull();if(this.get("slClassNot")==null)this.put("slClassNot", "");this.put("slClass", null);return this;};
	/** not .... */
	this.slClassNot=function(){if(this.proxy)return this.getProxy().slClassNot();this.put("slClassNot", "not");return this;};
	this.slClassNotNull=function(){if(this.proxy)return this.getProxy().slClassNotNull();this.put("slClassNot", "not");this.put("slClass", null);return this;};
	this.slClassNot=function(slClass){if(this.proxy)return this.getProxy().slClassNot(slClass);this.put("slClassNot", "not");this.put("slClass", slClass);return this;};
		
		 
	
	
	/** 数据ID        **/
	this.slRelate=function(slRelate){if(this.proxy)return this.getProxy().slRelate(slRelate);  this.put("slRelate", slRelate);return this;};
	/** and sl_relate is null */
	this.slRelateNull=function(){if(this.proxy)return this.getProxy().slRelateNull();if(this.get("slRelateNot")==null)this.put("slRelateNot", "");this.put("slRelate", null);return this;};
	/** not .... */
	this.slRelateNot=function(){if(this.proxy)return this.getProxy().slRelateNot();this.put("slRelateNot", "not");return this;};
	this.slRelateNotNull=function(){if(this.proxy)return this.getProxy().slRelateNotNull();this.put("slRelateNot", "not");this.put("slRelate", null);return this;};
	this.slRelateNot=function(slRelate){if(this.proxy)return this.getProxy().slRelateNot(slRelate);this.put("slRelateNot", "not");this.put("slRelate", slRelate);return this;};
		
	/** and sl_relate <= ? */
	this.slRelateMin=function(min){if(this.proxy)return this.getProxy().slRelateMin(min);this.put("slRelateMin", min);return this;};
	/** and sl_relate >= ? */
	this.slRelateMax=function(max){if(this.proxy)return this.getProxy().slRelateMax(max);this.put("slRelateMax", max);return this;};
		
		
	this.slRelateIn=function(ids){
		if(this.proxy)return this.getProxy().slRelateIn(ids);  this.put("slRelateIn", ids);return this;
	};	
		 
	
	
	/** 数据状态        **/
	this.slDetail=function(slDetail){if(this.proxy)return this.getProxy().slDetail(slDetail);  this.put("slDetail", slDetail);return this;};
	/** and sl_detail is null */
	this.slDetailNull=function(){if(this.proxy)return this.getProxy().slDetailNull();if(this.get("slDetailNot")==null)this.put("slDetailNot", "");this.put("slDetail", null);return this;};
	/** not .... */
	this.slDetailNot=function(){if(this.proxy)return this.getProxy().slDetailNot();this.put("slDetailNot", "not");return this;};
	this.slDetailNotNull=function(){if(this.proxy)return this.getProxy().slDetailNotNull();this.put("slDetailNot", "not");this.put("slDetail", null);return this;};
	this.slDetailNot=function(slDetail){if(this.proxy)return this.getProxy().slDetailNot(slDetail);this.put("slDetailNot", "not");this.put("slDetail", slDetail);return this;};
		
		 
	
	
	/** 操作时间 [非空]       **/
	this.slAddTime=function(slAddTime){if(this.proxy)return this.getProxy().slAddTime(slAddTime);  this.put("slAddTime", slAddTime);return this;};
	/** and sl_add_time is null */
	this.slAddTimeNull=function(){if(this.proxy)return this.getProxy().slAddTimeNull();if(this.get("slAddTimeNot")==null)this.put("slAddTimeNot", "");this.put("slAddTime", null);return this;};
	/** not .... */
	this.slAddTimeNot=function(){if(this.proxy)return this.getProxy().slAddTimeNot();this.put("slAddTimeNot", "not");return this;};
	this.slAddTimeNotNull=function(){if(this.proxy)return this.getProxy().slAddTimeNotNull();this.put("slAddTimeNot", "not");this.put("slAddTime", null);return this;};
	this.slAddTimeNot=function(slAddTime){if(this.proxy)return this.getProxy().slAddTimeNot(slAddTime);this.put("slAddTimeNot", "not");this.put("slAddTime", slAddTime);return this;};
		
	/** and sl_add_time >= ? */
	this.slAddTimeStart=function(start){if(this.proxy)return this.getProxy().slAddTimeStart(start);this.put("slAddTimeStart", start);return this;};			
	/** and sl_add_time <= ? */
	this.slAddTimeEnd=function(end){if(this.proxy)return this.getProxy().slAddTimeEnd(end);this.put("slAddTimeEnd", end);return this;};
		
		 
	
	
	
	this.add=function(key,value) {if(proxy)return proxy().add(key,value);this.put(key, value);return this;}
	this.desc=function(sql) {if(proxy)return proxy().desc(sql);this.put("desc", sql);return this;}
	this.asc=function(sql) {if(proxy)return proxy().asc(sql);this.put("asc", sql);return this;}
	this.definex=function(sql) {if(proxy)return proxy().definex(sql);this.put("definex", sql);return this;}
	
	/** 获取所有系统日志 **/
	this.list=function(size){
		this.data.size = size;
		var protocol = ux.ajax("/admin/systematic/log.list.do",this.data);
		if(!protocol)return null;
		if(protocol.data && protocol.data.list)return protocol.data.list;
		return [];
	}
	/** 获取系统日志分页 **/
	this.page=function(page,size){
		this.data.size = size;
		this.data.page = page;
		var protocol = ux.ajax("/admin/systematic/log.list.do",this.data);
		if(!protocol)return null;
		if(protocol.data)return data;
		return {list:[]};
	}
	/** 根据查询条件取系统日志 **/
	this.get=function(){
		this.data.size = 1;
		var protocol = ux.ajax("/admin/systematic/log.list.do",this.data);
		if(!protocol)return null;
		if(protocol.data && protocol.data.list && protocol.data.list.length==1)return protocol.data.list[0]; 
		return null;
	}
}

SrvLog.get = function(id){
	var protocol = ux.ajax("/admin/systematic/log.get.do",{id:id});
	if(!protocol)return null;
	if(protocol.data)return protocol.data.srvLog;
	return null;
}

SrvLog.where = new SrvLog.Where(0,true);